<template>
  <div>
    <div class="container">
      <div class="hot_">
        <el-menu
          class="host_menu"
          @open="handleOpen"
          @close="handleClose"
        >
          <el-menu-item index="1" class="item">
            <span class="specie">技术</span>
            <span class="title">Java</span>
            <span class="title">PHP</span>
            <span class="title">Web前端</span>
            <span class="title">算法工程师</span>
            <i class="el-icon-arrow-right arrow_icon"></i>
            <div class="layer"></div>
          </el-menu-item>
          <el-menu-item index="2" class="item">
            <span class="specie">技术</span>
            <span class="title">Java</span>
            <span class="title">PHP</span>
            <span class="title">Web前端</span>
            <span class="title">算法工程师</span>
            <i class="el-icon-arrow-right arrow_icon"></i>
            <div class="layer"></div>
          </el-menu-item>
          <el-menu-item index="3" class="item">
            <span class="specie">技术</span>
            <span class="title">Java</span>
            <span class="title">PHP</span>
            <span class="title">Web前端</span>
            <span class="title">算法工程师</span>
            <i class="el-icon-arrow-right arrow_icon"></i>
            <div class="layer"></div>
          </el-menu-item>
          <el-menu-item index="4" class="item">
            <span class="specie">技术</span>
            <span class="title">Java</span>
            <span class="title">PHP</span>
            <span class="title">Web前端</span>
            <span class="title">算法工程师</span>
            <i class="el-icon-arrow-right arrow_icon"></i>
            <div class="layer"></div>
          </el-menu-item>
          <el-button type="primary" class="btn">显示更多职位</el-button>
        </el-menu>
        <!--        end__menu-->
        <!--        ad广告开始 -->
        <div class="ad">
          <div class="left">
            <div class="img_top">
              <img src="https://img.bosszhipin.com/beijin/upload/image/20191225/3f7fda0998317f22ec614bfc392848b9.jpg?x-oss-process=image/format,jpg" alt="">
            </div>
            <div class="img_bottom">
              <img src="https://img.bosszhipin.com/beijin/upload/image/20191225/35f18357bbff0625465bb716d94f336a.jpg?x-oss-process=image/format,jpg" alt="">
            </div>
          </div>
          <div class="right">
            <div class="img">
              <v-lazy-image src="https://img.bosszhipin.com/beijin/upload/image/20191225/719b5568228bda8229408e1401457f13.jpg?x-oss-process=image/format,jpg" :src-placeholder="require('@/assets/loading-svg/loading-bars.svg')"/>
            </div>
            <div class="img">
              <v-lazy-image src="https://img.bosszhipin.com/beijin/upload/image/20191225/631e45e84ab482efaaf0a2bafb4d9219.jpg?x-oss-process=image/format,jpg" :src-placeholder="require('@/assets/loading-svg/loading-bars.svg')"/>
            </div>
            <div class="img">
              <v-lazy-image src="https://img.bosszhipin.com/beijin/upload/image/20191225/f1ab4555112c48503c7fdd8712531102.jpg?x-oss-process=image/format,jpg"
                            :src-placeholder="require('@/assets/loading-svg/loading-bars.svg')"/>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'JobMenu',
  data () {
    return {}
  },
  methods: {
    handleOpen () {

    },
    handleClose () {

    }
  }
}
</script>

<style lang="scss" scoped>
.hot_ {
  display: flex;
  /*菜单——menu*/
  .host_menu {
    width: 384px;
    text-align: center;

    .item {
      color: #61687c;

      &:hover {
        background-color: #00d7cb;
        color: #ffffff;

        .specie {
          color: #ffffff;
        }

        i {
          color: #ffffff;
        }

        .layer {
          display: block;
        }
      }

      .specie {
        font-size: 16px;
        margin-right: 15px;
        font-weight: 500;
        color: #414a60;
        overflow: hidden;
      }

      .title {
        padding-right: 15px;
      }

      .arrow_icon {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
      }

      .layer {
        position: absolute;
        width: 683px;
        height: 400px;
        background-color: #ffffff;
        box-shadow: 5px 5px 15px rgba(3, 0, 0, .04);
        border-radius: 3px;
        left: 385px;
        top: 0;
        display: none;
        z-index: 3;
      }
    }

    .btn {
      background-color: #5dd5c8;
      border: none;
      outline: none;
      margin-top: 10px;
    }
  }

  /*  菜单menu结束*/
  .ad {
    flex: 1;
    height: auto;
    margin-left: 30px;
    background-color: #ffffff;
    display: flex;

    .right {

      .img {
        width: 260px;
        height: 113px;

        img {
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}

</style>
